from django.conf.urls import patterns, include, url
from django.conf import settings
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'miniupload.views.home', name='home'),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    #url(r'^$', 'miniupload.views.index', name='index'),
    url(r'^admin/', include(admin.site.urls)),
    url(r'^$', 'miniupload.views.index', name='index'),
    url(r'^login$', 'miniupload.views.login_twitter', name='login'),
    url(r'^confirm_twitter$', 'miniupload.views.confirm_twitter', name='confirm_twitter'),
    url(r'^logout$', 'miniupload.views.logout_twitter', name='logout'),
    url(r'^send$', 'miniupload.views.send', name='send'),
    url(r'^receive$', 'miniupload.views.receive', name='receive'),
    url(r'^thanks4send$', 'miniupload.views.thanks4send', name='thanks4send'), 
    url(r'^download/(?P<id_package>[^/]+)$', 'miniupload.views.download', name='download'),
    url(r'^reject/(?P<id_package>[^/]+)$', 'miniupload.views.reject', name='reject'),
    url(r'^howto$', 'miniupload.views.howto', name='howto'), 

    url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_ROOT}),
    url(r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
)